|
Use mod_proxy #1
2016/02/03 |
|
Enable mod_proxy module to configure forward proxy settings.
|
|
| [1] | mod_proxy is included in apache2 package by default, so it's possible to configure quickly. |
|
root@www:~# a2enmod proxy proxy_http proxy_connect
root@www:~#
vi /etc/apache2/mods-enabled/proxy.conf # line 13-19: uncoment and change like follows
ProxyRequests On
<Proxy *>
AddDefaultCharset off
# add
ProxyVia On
AllowCONNECT 80 443
# Require all denied
# Require local
# add access permission
Require ip 127.0.0.1 10.0.0.0/24
</Proxy>
root@www:~#
vi /etc/apache2/ports.conf # line 5: change listening port Listen 8080
/etc/init.d/apache2 restart * Restarting web server apache2 ...done. |
| [2] |
Configure Proxy client setiings on a Client and make sure it's possible to access to any websites normally.
|